#将一组数字[5,8,1,9,23,88,4]按数值大小降序排序
list_a = [5,8,1,9,23,88,4]
def maopao(list1):
    for i in range(len(list1)):
        for j in  range(len(list1)-1):
            if list1[j+1]<list1[j]:
                list1[j],list1[j+1]=list1[j+1],list1[j]
    print(list1)
maopao(list_a)